/** 操作token的公用方法文件 */

const TOKEN_KEY = 'geek-park';
const getToken = () => localStorage.getItem(TOKEN_KEY);
const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token);
};
const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY);
};
export { getToken, setToken, removeToken };
